import http from '../utils/httpUtils'

export const getOrderByProIdAPI = (id) => http.get(`/order/${id}`);

export const getOrderByUserIdAPI = (id) => http.get(`/order/user/${id}`);

export const deleteOrderAPI = (id) => http.delete(`/order/${id}`);

export const addOrderAPI = (params) => http.post(`/order`, params); 